Avoid making a reference loop for every array with the ArrayFlags object.
Clarify get_or_register_dtype docs.
Add a copyright header.