bson: add check for non-shortest form during validation.