Support instantiation of generic arguments

Fix #285.
Add a few trailer spaces to ensure correct indentation after generating interfaces.