Add basic type checking for primary inputs