Fix for #560 & config setting/getting

This PR contains a fix for #560 by moving the debug bar code from within a 'finish' to an 'after', using the LATE_EVENT constant from Silex to ensure it follows other 'after' middlewares.

Also included is a slight refactor on setting/getting config values to remove limiting the accessible array depth.