castor: throw exception on NumberCast for invalid number
sql.executor: fix error for primitive type adapter
lang: add test case for Numbers