Sized dependent types via extensional type theory