Parameter parsing overhaul for complex types