Resolve references in TypeSafe plugin