Bug 879402 - Use template object to faster set the input and index properties on CreateRegExpMatchResult, r=bhackett