Refactor: libcrmcommon: best practices for pcmk__evaluate_attr_expression()
Improve argument validation, log messages, variable names, comments, and formatting.