QuickReference.dox: std::tan(array) --> tan(array), same for other functions.
Ref<> objects must be nested by reference because they potentially store a temporary object
Fix cost evaluation of partial reduxions -> improve performance of vectorwise/replicate expressions involving partial reduxions
Backout parts of changeset 2d62a0ee5095 (these changes were not intended to be commited)