fix for returning generics in a namespaced file

fix for returning generics in a namespaced file. specifically for catamorphisms