Improved exception message for accessing object without ArrayAccess as array