[MAT-462] Adds input checker to xgetrf template.

This adds the input checking option to the xgetrf templates and
updates associated code and tests.