Make sure we don't dereference null frame. DRY into a function.
fix -Q hack13, little file test.
slight improvements; use python2 names for types
Adds a bunch of tests for dict.get, getattr and unicode codec names.