Implementet the nx_rect:s contains function. Added some tests to go along with the changes.