Rewrite parseBoolean to use switch

as per @gavinking's suggestion here: https://github.com/ceylon/ceylon.language/pull/326#issuecomment-26245106