add support partial tag expansion like ${tag[0]} or ${tag[1..-2]}
Merge remote-tracking branch 'yosisa/partial-tag'