When one is copying the 5-9 packages over a running pre-5.8.1 version (5.8.0), i would understand the problem with "no such key: word". The page contract filter "word " was introduced between 5.8.0 and 5.8.1, and the filters are loaded at start time. Are you sure, you restarted the server with 5.8.1 before copying the 5.9 packages?
I am a little confused by the sentence: "The strange thing id that in the same environment the oacs-5-9-1 installed by install-oacs.sh script works perfectly well.": are you saying, you have an upgraded and a fresh installed system on the same machine, and the fresh-installed works and the upgrqaded not? Can it be that the upgraded instance has still an old version of xotcl-core?