properly handle `DateTime` values

it was handled in datatype detection in `Graph::addLiteral()` but wasn't handled in `Graph::checkValueParam()`