Small bugfixes

- Fixed extending arrays in configuration (where the specified array is
shorter than the default)
- Replaced removing the after element with detaching.