Support for vector-valued constants

Requires #37, closes #36