Some fixes. Btw, https://gist.github.com/griwes/5674449 is the most
magical assert I've ever seen. I'll keep it for the future generations
to fear it.