Test case for issue #96
Fix #96: #get and #set don't accept newtyped pointers

Add logic to determine whether pointers used in get and set hooks are
newtyped, and if so generate lambda expressions with pattern matching
to unwrap newtype constructors.