Fix get_objects_for_user to work with objects with non-integer primary keys

fixes #204
fixes #217
fixes #252

Includes 3 tests that touch the previously problematic areas in the code.
for docstrings (this and next ones) please use Django-style (newline just after first 3-quotes)