Simplify code; add _getJoiningTransformer instance method; implement callTemplate, forEach, and valueOf; allow mode at root level