The document says LuaTilePrototype.collision_mask is an array of string, but in fact it is dictionary string → boolean, same as LuaItemPrototype.flags.
I used serpent.dump to find that, after getting stuck for a few minutes on checking whether the tile is walkable.
![Smile :)](./images/smilies/icon_e_smile.gif)