Fixed type error in lua bindings
Fixed tolua emitting isnumber insteand of is<Enum>
Added unreachable lines backit prtected by preprocessor guards