Fix PR215: [bcwriter] Problem compactifying ConstantPointerRefs