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.