small low level optimizations
merge with head
add first tuplet regression test