Really clever use of the theme! I think you've addressed most of the bugs I also ran into. It was a little tricky trying to figure out the exact way to put the loops together, I think if you were to make more levels, I would put a few more easy ones to help the player get used to how the different pieces interact with the character.
Great execution of your idea nonetheless!