Add array type hints.

This should probably be reverted.