Merge "Use ScopedPrimitiveArrayRO instead of manually managing Java primitive"