Add shorthands for pin types.

This also set compatibility with previous versions.