try to support advvar when in useVar compile time. not tested, no error handling now
add advanced variable name checking in scan() stage
add test for error case
add example for small test script
now can report more than 1 error in template when compile()