fixed a bug in the temp implementation of adding fields/funs for seq types