Make serialization functions more consistent

The xquery functions spec defines a standard way for passing serialization options to fn:serialize as an xml fragment. Use the same mechanism for eXist's file:serialize and util:serialize functions. For backwards compatibility, both functions still allow parameters to be passed in as string.