Correctly init UserFile's context fixing $object->context

Fixes #1991.