Add tests for types and enable vectors of long (#3988)