Only test id value if there is one.
Use the correct parents template name.
Update for BSE module dir restructure.
Field macros now all test is_hash.
Only test field htmltype if one is defined.
Make sure _t and tree cgi params are defined.