Index Template: Parse and validate mappings in template when it puts

Parse and validate mappings in template when it puts.

* parse and validate mappings in template using dummy index service
* return error if template include invalid mapping 
* Not support a partial template

Close #2415
nitpick: align this line with the strings below?