Added more output types to automatic code generator
All functions agree with api
Re-organized code to make it more maintainable
Added missing ;
Reduced lines of code in hsva-to-rgba