Closes issue Vladec/matching-engine#7

As commit name says. Also changes the "value" typedefs to "type", as you agreed.