- flatten nested "lindex" structures
- use numeric comparison operator for truth value comparisons
- use "lassign" instead of multiple "lindex" operations