Fix Array#flatten on an array containing a Settingslogic object

Clean version of this pull-request: https://github.com/binarylogic/settingslogic/pull/36