Closes #693. dcast returns better error message when fun.agg returns length!=1