Resolve attribute types earlier
Support constant ctypes pointers