Add some flattening to gray code functions
Add some flattening to gray code functions

still does not pass, but gets fruther than before

perl6/roast,dankogai/roast,b2gills/roast,dogbert17/roast,cygx/roast,zostay/roast,skids/roast,skids/roast,zostay/roast,zostay/roast,bitrauser/roast,b2gills/roast,dogbert17/roast,dankogai/roast,skids/roast,cygx/roast,bitrauser/roast,cygx/roast,b2gills/roast,dankogai/roast