parsed nested terms; added tests

not complete, probably don't handle fx(fx(...), param) (e.g. tloc) due
to not popping arg stack on return