use clone (faster than generalize) to load precompiled libraries; fix rpn to store references properly