core/value, expression: merged try_node_to_value with core/expression

It's essentially a minimal version of peval_expression() anyway
core/expression: made fmap-type functions more uniform, added List and Dict handling