Make type (tag) selectors available when the cursor is at the beginning of an existing one or at the begining of the line. Also fix the overwriting existing characters issues when inserting an attribute selector or a pseudo selector.