Implement nqp::chain compilation.