Lazily extend the declared attributes.
Make attr types lowercase.