update bootstrap compiler
use template functions for Cloner/Serializer
fix a bug introduced in prev commit