implement GetPrimitiveArrayCritical also for returning data (no performance diff visible)