Multiinstance: fix a small bug where inputs were not serialised
correctly