Modified flattening to keep always the original key unflattened

This is made to allow validation over and object
Formatting errors allow hooking up a global function for pre formatting
Built dist files