added transform_within_instance

ensures that all touches occurred within the instance element
(#451, #452)