Extend argument API with more types, and add some generic getters.