Fix issues with set type and passing by reference
Fixes for loading the user instance in exceptions test