switch to using isinstance for arg validation
switch to using isinstance for arg validation

Signed-off-by: Adam Miller <9d2b519502b7f059da0978e5ef96c2f4172e413b@fedoraproject.org>

jpopelka/dockerfile-parse,jpopelka/dockerfile-parse,DBuildService/dockerfile-parse,DBuildService/dockerfile-parse