Prohibit equality comparison of incomparable values

This ensures that nodes can only be equality compared against nodes, and relationships only against relationships (particularly prohibits comparing entities against map parameters)