allow 'extension' parameter to be an array and perform case-insensitive comparisons against it in file validators, closes #1144 and closes #1145