Fix for handling .id=NULL in rdply and ldply

Following http://stackoverflow.com/q/25733636/168747 I prepare fix for this.

rdply(5, function() data.frame(a=1), .id=NULL)
ldply(1:5, function(i) data.frame(a=1), .id=NULL)

should work. I add few tests to handle corner cases.