Bug Fix: Crash in variant::get_integer().

We were passing a temporary object to a trailer_dict constructor which bound it to a reference.
The trailer_dict outlived the temporary object and bad things happened.