various fixes to formulas and type system
Merge branch 'master' of github.com:anura-engine/anura