Add ability to specify checksum type to file type ref

Hi! in order to minimize load on the puppet server when comparing many files on many servers, we thought of adding the option to change the default 'md5' checksum.  Let me know what you think.