bug fix and test cases related to length 0 sequence feature #3206
Merge branch '245-seqfea-bug' into staging