Implementation of insertvalue instruction.

Fixes #157.