1) dotNotation creation function changed.
2) validation generation macro part refactored to get the common part out.