Prevent illegal collection operations on stringlike nodes