Deprecate calling FFI::cast(), FFI::new(), and FFI::type() statically
Fix order of checks to throw exception with better message This clarifies the "->cdata" meaning.