Fix #192 - outer types get ref to inner types