Fixed bug in guts.coffee to ensure comparator is a function