core: fix expand bug

After fixing this part, there also needs to be made a change to the Atlas example or the schema of aws_elb.
No, it's correct as is... Will have an additional look at the existing test and if we need additional tests, but let's first see what @armon thinks of this...