Fix Gruntfile so as to remove long function return types from d.ts file on protected functions