add error classes
throw appropriate errors + ToNumber in bit module
move toNumber, toObject, toPrimitive,defaultValue to internal.lua
change options of castl command line