Support for vector-valued constants

Requires #38, closes #36