Index Template: parse and validate mappings in template when template puts

Close #2415