Add support for build_slice op.

Register compaction seems broken.