fix "Select" fragment parsing

The fragment parser method was missing a check for "Select" type and fixed two bugs in the getBoolean() method.