Fix flattytype type generation