Bugfix root array

refactored the mechanism if a struct belongs into linked
This is a nice pattern for options: http://dave.cheney.net/2014/10/17/functional-options-for-friendly-apis