Minor fixes for dcast.data.table and radixorder2

dcast.data.table's handling of formula as a character lead to errors in certain cases. Now corrected. Also better error messages are now provided.
radixorder2 now returns "integer(0)" for "numeric(0)" input.
Tests added and tested successfully.