Add isless(::Ptr, ::Ptr) and tests

Can be useful to check whether a pointer is in a memory range,
e.g. for arrays. Also add tests for pointer arithmetic.
Merge pull request #9483 from JuliaLang/nalimilan/ptr

Add <(::Ptr, ::Ptr)