Simpler implementation of toProperties for layered settings, since the old one didn't work if you created a writable properties over it