Reworked eval snippets/plugin functions and MODX error level detection