fix handling of native constructors (ArrayBuffer, etc)