added let_in/let_multi macros for automatic ref count handling