Allow passing binary for dataset type.