Revert "improve readability of cache file for the new routes file"

This reverts commit 730b1e719c8f817c8937997d1a00835a19ad1b00.
changed routing to be flat again instead of a hierarchy as it proved to be difficult to manage otherwise
avoid php notices when type is not defined