make cpp.NativeArray extern so its methods are always inlined (closes #2938)
add tests/misc to test compilation with specific compiler configuration