JNAerator: fix regression on references to types from callbacks defined in structs