Marks JS types to fix standard instanceof operator issues