Closes #476, #825. names<-.data.table fix for v3.1+
Merge branch 'Fix-476-825'
Add 'caret' package for tests.