Fix a "only variables should be passed by reference" strict-standards error,

end() expects a reference because it wants to modify the internal array pointer.