add support for primitive types in busmod config
fix response written twice in callback