The perlite shouldn't be an issue, however, the pine bark is what I would worry about.
The tank I used a no name potting soil with the perlite is going on 5 years and it has not had any issues. The only problem I have had with the perlite is the mess it makes when I pull a plant and/or replant-disturbe the soil and the perlite floats to the surface and looks ugly until I get it netted out. It will clog up a filter if too much gets sucked in-but that is an easy fix.
The pine bark might cause a toxic issue especially in smaller tanks since it won't be diluted...Personally I won't use pine, cedar, ash type species or grape vines in systems due to the sap, tar, toxic substance they can produce.
Top soil is a good choice as long as it doesn't have a lot of manure and pine bark and some will. Take a walk in the woods and dig your own soil...sift with a little clay and sand for your NPT...if you have access....