extract declarations in transform instead of delayed line
replace hoist_declarations with declare_glob in classes, fixes #65
run tests under 5.1 normally