fix toArray
add compose fn
add sequence fn
add compose and sequence tests